import { http } from "../utils/http";

/**
 * @description: 1 get 请求
 */
export const testapi = http.Get(
  "/yhqt-server/wechat-server/api/webchat/getSmsCode"
);

/**
 * @description: 2 post 请求
 */
export const testPostapi = http.Post(
  "/yhqt-server/wechat-server/api/webchat/getSmsCode"
);

/**
 * @description: 3 自定义请求
 */
export const testCallApi = http.Call({
  url: "/article",
  method: "post",
  body: { a: 1 },
});

/**
 * @description: 获取文章列表
 */
export const getArticleList = http.Post("/article");
